/*
 *
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
 * in compliance with the License. You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software distributed under the License
 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
 * or implied. See the License for the specific language governing permissions and limitations under
 * the License.
 *
 * Copyright @2008 the original author or authors.
 */
package com.bluestone.report;

import java.beans.PropertyChangeEvent;

/**
 * ActionReportBean records some informations for IAction when IAction is invoked.
 * @author <a href="mailto:ming7655@gmail.com">Aaron</a>
 */
public class ActionReportBean extends AbstractReportBean{
	/**
	 * 
	 */
	private static final long serialVersionUID = 9000573137595101911L;

	public ActionReportBean(){
		super();
	}
	
	public ActionReportBean(AbstractReportBean parent) {
		super(parent);
	}

	private String reportId;

	private String projectId;

	private String projectName;

	private String projectVersion;

	private String projectSpeedRate;

	private String projectRetryCount;

	private String projectFailureCount;

	private String browserType;

	private String testSuiteId;

	private String testSuiteName;

	private String testCaseId;
	
	private String testCaseAttributeId;

	private String testCaseName;

	private String commandId;

	private String commandName;

	private String actionId;

	private String actionType;

	private String actionValue;

	private String actionTarget;

	private String actionDelay;

	private String actionTimeOut;

	private String actionOffset;

	private String actionOwner;

	private String actionExecuteResult;
	
	private int reTryCount=0;

	

	public String getActionDelay() {
		return actionDelay;
	}

	public void setActionDelay(String actionDelay) {
		this.actionDelay = actionDelay;
	}

	public String getActionExecuteResult() {
		return actionExecuteResult;
	}

	public void setActionExecuteResult(String actionExecute) {
		this.actionExecuteResult = actionExecute;
		if("false".equals(this.actionExecuteResult)){
			this.reTryCount++;
			this.firePropertyChange(PROPERTY_EXECUTERESULT, null, this.actionExecuteResult);
		}
	}

	public String getActionId() {
		return actionId;
	}

	public void setActionId(String actionId) {
		this.actionId = actionId;
	}

	public String getActionOffset() {
		return actionOffset;
	}

	public void setActionOffset(String actionOffset) {
		this.actionOffset = actionOffset;
	}

	public String getActionOwner() {
		return actionOwner;
	}

	public void setActionOwner(String actionOwner) {
		this.actionOwner = actionOwner;
	}

	public String getActionTarget() {
		return actionTarget;
	}

	public void setActionTarget(String actionTarget) {
		this.actionTarget = actionTarget;
	}

	public String getActionTimeOut() {
		return actionTimeOut;
	}

	public void setActionTimeOut(String actionTimeOut) {
		this.actionTimeOut = actionTimeOut;
	}

	public String getActionType() {
		return actionType;
	}

	public void setActionType(String actionType) {
		this.actionType = actionType;
	}

	public String getActionValue() {
		return actionValue;
	}

	public void setActionValue(String actionValue) {
		this.actionValue = actionValue;
	}

	public String getBrowserType() {
		return browserType;
	}

	public void setBrowserType(String browserType) {
		this.browserType = browserType;
	}

	public String getCommandId() {
		return commandId;
	}

	public void setCommandId(String commandId) {
		this.commandId = commandId;
	}

	public String getCommandName() {
		return commandName;
	}

	public void setCommandName(String commandName) {
		this.commandName = commandName;
	}

	public String getProjectFailureCount() {
		return projectFailureCount;
	}

	public void setProjectFailureCount(String projectFailurecount) {
		this.projectFailureCount = projectFailurecount;
	}

	public String getProjectId() {
		return projectId;
	}

	public void setProjectId(String projectId) {
		this.projectId = projectId;
	}

	public String getProjectName() {
		return projectName;
	}

	public void setProjectName(String projectName) {
		this.projectName = projectName;
	}

	public String getProjectRetryCount() {
		return projectRetryCount;
	}

	public void setProjectRetryCount(String projectRetryCount) {
		this.projectRetryCount = projectRetryCount;
	}

	public String getProjectSpeedRate() {
		return projectSpeedRate;
	}

	public void setProjectSpeedRate(String projectSpeedrate) {
		this.projectSpeedRate = projectSpeedrate;
	}

	public String getProjectVersion() {
		return projectVersion;
	}

	public void setProjectVersion(String projectVersion) {
		this.projectVersion = projectVersion;
	}

	public String getReportId() {
		return reportId;
	}

	public void setReportId(String reportId) {
		this.reportId = reportId;
	}

	public String getTestCaseId() {
		return testCaseId;
	}

	public void setTestCaseId(String testCaseId) {
		this.testCaseId = testCaseId;
	}

	public String getTestCaseName() {
		return testCaseName;
	}

	public void setTestCaseName(String testCaseName) {
		this.testCaseName = testCaseName;
	}

	public String getTestSuiteId() {
		return testSuiteId;
	}

	public void setTestSuiteId(String testSuitId) {
		this.testSuiteId = testSuitId;
	}

	public String getTestSuiteName() {
		return testSuiteName;
	}

	public void setTestSuiteName(String testSuitName) {
		this.testSuiteName = testSuitName;
	}

	public String getTestCaseAttributeId() {
		return testCaseAttributeId;
	}

	public void setTestCaseAttributeId(String testCaseAttributeId) {
		this.testCaseAttributeId = testCaseAttributeId;
	}

	public void propertyChange(PropertyChangeEvent evt) {
		// TODO Auto-generated method stub
		
	}

	public int getReTryCount() {
		return reTryCount;
	}

	public void setReTryCount(int actionReTryCount) {
		this.reTryCount = actionReTryCount;
	}
}
